<layout name="layout" />

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
                       <tr>
                <td class="label">角色：</td>
                   <td>
                   <?php foreach($roleData as $k =>$v):
                       if($v['role_id'])
                    	$check = 'checked="checked"';
                    		else 
                    		$check = ''
                   ?>
                   <input  type="checkbox" <?php echo $check ;?> name="roleids[]" value="<?php echo $v['id']?>"/> 
                   <?php echo $v['role_name']?>
                   <?php endforeach;?>
                </td>                 
                    

            </tr>
            <tr>
                <td class="label">用户名：</td>
                <td>
                    <input  type="text" name="username" value="<?php echo $data['username']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">密码：</td>
                <td>
                    <input type="password" size="25" name="password" /><span style="color:red">*为空表示不修改原密码</span>
                </td>
            </tr>
            <tr>
                <td class="label">确认密码：</td>
                <td>
                    <input type="password" size="25" name="repassword" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>


<script>
</script>